package org.freeocs.commons.exception;

import java.io.PrintStream;
import java.io.PrintWriter;

import javax.servlet.ServletException;

/**
 * Action操作异常
 * 
 * @author chirs
 */
public class ActionException extends RuntimeException {
	private static final long serialVersionUID = 4203636526871364876L;

	public ActionException(ServletException cause) {
		super(cause);
	}

	public ActionException(String message) {
		
	}

	@Override
	public String getLocalizedMessage() {
		return getCause().getLocalizedMessage();
	}

	@Override
	public String getMessage() {
		return getCause().getMessage();
	}

	@Override
	public void printStackTrace() {
		getCause().printStackTrace();
	}

	@Override
	public void printStackTrace(PrintStream s) {
		getCause().printStackTrace(s);
	}

	@Override
	public void printStackTrace(PrintWriter s) {
		getCause().printStackTrace(s);
	}
}
